/*
 * 人人信用管理有限公司版权所有.
 * 
 * @Description:
 * 
 * @author: liyuliang
 * 
 * @date: 20 Apr 2017 10:44:16 am
 * 
 * 注意：本内容仅限于人人信用管理有限公司内部传阅，禁止外泄以及用于其他的商业目的.
 */

package com.rrx360.common.web.sitemesh;

import org.sitemesh.SiteMeshContext;
import org.sitemesh.content.ContentProperty;
import org.sitemesh.content.tagrules.TagRuleBundle;
import org.sitemesh.content.tagrules.html.ExportTagToContentRule;
import org.sitemesh.tagprocessor.State;

public class BottomBundle implements TagRuleBundle {

  @Override
  public void install(State defaultState, ContentProperty contentProperty,
      SiteMeshContext siteMeshContext) {
    defaultState.addRule("bottom",
        new ExportTagsToContentRule(siteMeshContext, contentProperty.getChild("bottom"), false));
  }

  @Override
  public void cleanUp(State defaultState, ContentProperty contentProperty,
      SiteMeshContext siteMeshContext) {}

}
